package com.neu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 一级需求实体类
 */
@Schema(description = "一级需求实体")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("fp") // 数据库表名
public class FpFatherDemand {

    @Schema(description = "需求ID")
    @TableId(type = IdType.ASSIGN_ID) // 指定主键生成
    private int id; //

    @Schema(description = "关联任务ID")
    private String taskId;

    @Schema(description = "需求名称")
    private String pname;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }
}
